#ifndef VERIFICATIONCODEBUTTON_H
#define VERIFICATIONCODEBUTTON_H
#include<QPushButton>
#include<QTimer>
class VerificationCodeButton:public QPushButton
{
    Q_OBJECT
public:
    explicit VerificationCodeButton(QWidget* parent=nullptr);

    void  startCountdown(int seconds);
    void  stopCountdown();
    ~VerificationCodeButton();
    void onButtonClicked();

private slots:
    void updateCountdown();

private:
    QTimer *timer;
    int currentSeconds;
    int countdownSeconds;

    QString originstring;
};

#endif // VERIFICATIONCODEBUTTON_H
